# AT90S2313 UART Driver

The driver which works with `at90s2313` microcontroller from atmel.
A blocking only version with some hacks.

## Why ?

The general implementation for `AVR` which could be found on
internet does not work at all, uses interrupts and buffers which is
an extremely bad idea for device with 128b of memory.

## Usage

It works just fine as 9600 8N1, the 8bit mode is the only
supported mode.

The driver consists of only 3 functions:

```
uart_init(9600); // which initializes UART
int uart_getchar();
uart_putchar();
```

## License

GPLv2

```
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  Author: hakanai
  Email:  hakanai at dnmx.0rg
```
